package com.loadmore.stepcount

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.loadmore.common.log.LogUtil

class AlarmTimeReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        // This method is called when the BroadcastReceiver is receiving an Intent broadcast.
        LogUtil.d("AlarmTimeReceiver")
        val newIntent = Intent(context,StepCountService::class.java)
        newIntent.action = intent.action
        context.startService(newIntent)
    }
}
